import { Module } from 'vuex'
import { IRootState } from '../type'
import router from '@/router'
import { accountLoginRequest } from '@/service/login/login'
import localCache from '@/utils/cache'

interface IloginState {
  wxFormData: string
}
const mainModule: Module<IloginState, IRootState> = {
  namespaced: true, //命名空间
  state: () => {
    return {
      wxFormData: '',
    }
  },
  mutations: {
    changewxFormData(state, wxFormData: any) {
      state.wxFormData = wxFormData
    },
  },
  getters: {},
  actions: {
    async wxFormData({ commit }, payload: any) {},
    // 5.获取本地缓存中的数据到vuex
    getwxFormData({ commit }) {},
  },
}
export default mainModule
